package com.verisette.ncos.web.utilities;

import java.io.FileOutputStream;

import com.itextpdf.text.Chunk;
import com.itextpdf.text.Document;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itextpdf.text.pdf.PdfWriter;

public class WatermarkTest {
	public static final String p = "D:\\NonMFEC\\Pu\\verisette\\NCOS\\workspace\\ncos\\src\\com\\verisette\\ncos\\web\\utilities\\";
	public static final String result="result01.pdf";
	public static final String stamp="result02.pdf";
	public static void main(String[] args) throws Exception {
		WatermarkTest t = new WatermarkTest();
		t.createPdf();
		
	}
	
	public void createPdf() throws Exception {
		Document doc = new Document(PageSize.LETTER);
		PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream(p+result));
		for(int i=0;i<2;i++){
			doc.add(new Chunk("Test"));
			PdfContentByte over = writer.getDirectContent();
//			over.add(new Chunk("Test"));
			
		}
		doc.close();
	}
	
	public void stampPdf(){
		
	}
}

